//
//  DiaryModal.m
//  NewNest
//
//  Created by hesiyao on 16/1/24.
//  Copyright © 2016年 www.lanou3g.com蓝鸥科技. All rights reserved.
//

#import "DiaryModal.h"

@implementation DiaryModal

- (void)dealloc
{
    [_name release];
    [_content release];
    [_imgUrl release];
    [_share_link release];
    [super dealloc];
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"creator"]) {
        self.name = value[@"name"];
        self.imgUrl = value[@"icon_url"][@"640"];
    }
    if ([key isEqualToString:@"image_urls"]) {
        NSMutableArray *arr = value;
        NSMutableDictionary *dic = arr.firstObject;
        self.backImgUrl = dic[@"750"];
    }
}

@end
